package com.dinian.demeter.domain;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

@Setter
@Getter
@ToString
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class User implements Serializable{
    private static final long serialVersionUID = 6523685452514706203L;
    private Long userId;
    private String username;
    private String password;
    private String realName;
    private String sex;
    private String mobile;
    private String area;
    private String unit;
    private String build;
    private String office;
    private Date createTime;
    private Date updateTime;
    private Set<Role> roles = new HashSet<>();
}
